//1. 导入
const express = require('express');

//2. 创建路由器对象
const router = express.Router();

//3. 路由规则
router.get('/admin', (req, res) => {
    res.send('后台页面')
});

router.get('/setting', (req, res) => {
    res.send('后台设置页面')
});

//4. 暴露
module.exports = router;
